<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model;

use Carbon\Carbon;
use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id
 * @property int $parent_id
 * @property int $order
 * @property string $title
 * @property string $icon
 * @property int $menu
 * @property string $uri
 * @property string $condition
 * @property string $method
 * @property Carbon $created_at
 * @property Carbon $updated_at
 */
class AdminMenu extends Model
{

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'admin_menus';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'parent_id', 'order', 'title', 'menu', 'icon', 'uri', 'condition', 'method', 'status'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'parent_id' => 'integer', 'order' => 'integer', 'icon' => 'string', 'title' => 'string', 'uri' => 'string', 'condition' => 'string', 'menu' => 'integer', 'method' => 'string', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
